package com.dd.stack.common.util;

import lombok.Getter;

/**
 @author bigbigmeng
 @createTime 2024/11/5 16:36
 @instruction 返回信息枚举
 */
@Getter
@Deprecated
public enum ResultEnum {
    /********************** 通用枚举 START *******************/
    SUCCESS(200, "成功"),
    FAIL(500, "服务端错误"),
    /******************** 服务器 [文件] 相关 *****************/
    FILE_SIZE_TOO_LARGE(505001, "文件大小不能超过 1GB"),
    FILE_NAME_LENGTH_TOO_LONG(505002, "文件名长度不能超过1024字节");

    private final int code;
    private final String message;

    ResultEnum(int code, String msg) {
        this.code = code;
        this.message = msg;
    }
}
